home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / unix / volume20 / pcomm1.2 / part01 next >
Encoding:
Internet Message Format  |  1989-10-25  |  64.5 KB

  1. Subject:  v20i067:  Pcomm telecommunication package, Part01/08
  2. Newsgroups: comp.sources.unix
  3. Sender: sources
  4. Approved: rsalz@uunet.UU.NET
  5.  
  6. Submitted-by: uiucuxc!fthood!egray
  7. Posting-number: Volume 20, Issue 67
  8. Archive-name: pcomm1.2/part01
  9.  
  10. [  Only a formatted reference manual... /r$ ]
  11.  
  12. This is the Pcomm version 1.2 distribution package.  Pcomm is a public
  13. domain telecommunication program for Unix designed to operate similar to
  14. the popular MSDOS program, ProComm.  ProComm (TM) is copyrighted by
  15. Datastorm Technologies Inc.
  16.  
  17. Some of the new features in v1.2 are:
  18.     1) Support for Berkeley flavors of Unix.  (I'll admit that the
  19.        Berkeley port could use some more testing).
  20.     2) Auto-login scripts (using Unix shell scripts).
  21.     3) External file transfer programs can have their names imbedded
  22.        into the list of available protocols.
  23.     4) Faster operation through tunable I/O buffering.
  24.  
  25. The distribution package is quite large... (about 450k total) and is
  26. broken into 8 parts for easier mailing.
  27.  
  28. There is a shell archive called "Unixpc.shar" that contains the files
  29. specific to the AT&T Unix PC 7300/3b1.
  30.  
  31. Here is a complete manifest of the distribution package:
  32.  
  33. Doc            curses.c       getopt.c       passthru.c     terminal.c
  34. Makefile       d_delete.c     help.c         pexit.c        tty_att.c
  35. Matches.1      d_lib.c        info.c         port.c         tty_ucb.c
  36. Modem_break.1  d_manual.c     init.c         redial.c       vcs.c
  37. Pcomm.1        d_menu.c       input.c        s_axfer.c      vcs.h
  38. Pcomm.dial_dir d_print.c      list_dir.c     s_extrnl.c     waitfor.c
  39. Pcomm.extrnl   d_prompt.c     ls_menu.c      s_gen.c        x_ascii.c
  40. Pcomm.modem    d_revise.c     m_lib.c        s_menu.c       x_batch.c
  41. Pcomm.param    data_log.c     macro.c        s_modem.c      x_extrnl.c
  42. Readme         di_delay.c     main.c         s_prompt.c     x_menu.c
  43. Release.notes  di_win.c       matches.c      s_term.c       x_rcv.c
  44. Sample         dial.c         misc.h         s_tty.c        x_send.c
  45. Unixpc.shar    dial_dir.h     modem.h        screen.c       x_win.c
  46. Waitfor.1      e_lib.c        modem_break.c  script.c       xmodem.c
  47. admin.c        expand.c       n_shell.c      st_line.c      xmodem.h
  48. chg_dir.c      extrnl.h       p_lib.c        status.h
  49. config.h       getcwd.c       param.h        strings.c
  50.  
  51. By the way, I intend to post bug fixes to comp.sources.bugs.
  52.  
  53. Have fun...
  54.  
  55. Emmet P. Gray                US Army, HQ III Corps & Fort Hood
  56. ...!uunet!uiucuxc!fthood!egray        Attn: AFZF-DE-ENV
  57.                     Directorate of Engineering & Housing
  58.                     Environmental Management Office
  59.                     Fort Hood, TX 76544-5057
  60.  
  61. ------------------------------------------------------------------------------
  62. #! /bin/sh
  63. # This is a shell archive, meaning:
  64. # 1. Remove everything above the #! /bin/sh line.
  65. # 2. Save the resulting text in a file.
  66. # 3. Execute the file with /bin/sh (not csh) to create:
  67. #    Doc
  68. export PATH; PATH=/bin:/usr/bin:$PATH
  69. echo shar: "extracting 'Doc'" '(61114 characters)'
  70. if test -f 'Doc'
  71. then
  72.     echo shar: "will not over-write existing file 'Doc'"
  73. else
  74. sed 's/^X//' << \SHAR_EOF > 'Doc'
  75. X
  76. X
  77. X
  78. X
  79. X
  80. X
  81. X
  82. X
  83. X
  84. X
  85. X          PPPPPP    CCCC    OOOO    MM   MM   MM   MM
  86. X          P    P   C       O    O   M M M M   M M M M
  87. X          PPPPPP   C       O    O   M  M  M   M  M  M
  88. X          P        C       O    O   M     M   M     M
  89. X          P         CCCC    OOOO    M     M   M     M
  90. X
  91. X
  92. X
  93. X
  94. X
  95. X
  96. X
  97. X
  98. X                Pcomm Reference Manual
  99. X
  100. X                  version 1.2
  101. X
  102. X
  103. X
  104. X
  105. X                  written by
  106. X
  107. X                 Emmet P. Gray
  108. X            ...!uunet!uiucuxc!fthood!egray
  109. X
  110. X
  111. X
  112. X
  113. X
  114. X
  115. X    Pcomm is a public domain telecommunication program for Unix that
  116. X    is  designed  to  operate similar to the MSDOS program, ProComm.
  117. X    ProComm (TM) is  copyrighted  by  Datastorm  Technologies,  Inc.
  118. X    This  is a completely new program and contains no ProComm source
  119. X    code.  This is not a Datastorm product.
  120. X
  121. X
  122. X
  123. X                   Table of Contents
  124. X
  125. X
  126. X
  127. X
  128. X    1. INTRODUCTION .......... 3       5. UTILITY FUNCTIONS ..... 20
  129. X    1.1 Abbreviations ........ 3       5.1 Program information .. 20
  130. X    1.2 Requirements ......... 3       5.2 Setup screen ......... 20
  131. X    1.3 Support files ........ 4       5.3 Change directory ..... 20
  132. X                       5.4 Clear screen ......... 20
  133. X    2. RUNNING PCOMM ......... 5       5.5 Toggle duplex ........ 20
  134. X    2.1 Hot key .............. 5       5.6 Hang up the phone .... 20
  135. X    2.2 Status line .......... 5       5.7 Printer logging ...... 21
  136. X    2.3 Help screen .......... 6       5.8 Toggle CR - CR/LF .... 21
  137. X    2.4 Exit Pcomm ........... 6       5.9 Break ................ 21
  138. X
  139. X    3. SETUP SCREENS ......... 7       6. FILE FUNCTIONS ........ 22
  140. X    3.1 Prompting ............ 7       6.1 External protocols ... 22
  141. X    3.2 TTY setup ............ 8       6.2 Send files ........... 22
  142. X    3.3 Modem setup........... 9       6.3 Receive files ........ 24
  143. X    3.4 Terminal setup ....... 10      6.4 Pass thru mode ....... 24
  144. X    3.5 General setup ........ 11      6.5 Directory ............ 25
  145. X    3.6 ASCII transfer setup . 12      6.6 Screen dump .......... 25
  146. X    3.7 External protocol .... 14      6.7 Start data logging ... 25
  147. X                       6.8 Toggle logging ....... 26
  148. X    4. MAJOR FUNCTIONS ....... 15
  149. X    4.1 Dialing dierctory .... 15      7. DIALING WINDOW ........ 27
  150. X    4.2 Redial ............... 17
  151. X    4.3 Keyboard macros ...... 17      8. AUTO-LOGIN SCRIPTS .... 28
  152. X    4.4 Line settings ........ 18      8.1 Waitfor Command ...... 28
  153. X    4.5 Exit Pcomm ........... 19      8.2 Matches Command ...... 29
  154. X    4.6 Unix gateway ......... 19      8.3 Modem_break Command .. 29
  155. X                       8.4 Examples ............. 30
  156. X
  157. X
  158. X
  159. X
  160. X
  161. X
  162. X          Appendix A - Typical Modem Configuration ...... 31
  163. X          Appendix B - AT&T Unix PC 7300/3b1 Dial Codes . 32
  164. X          Appendix C - Using Telebit Trailblazers ....... 34
  165. X
  166. X    1. INTRODUCTION
  167. X
  168. X    Pcomm is a public domain, menu driven, telecommunication program
  169. X    designed  to  provide the same "ease of use" as similar programs
  170. X    available in MSDOS.  Some of its features are:
  171. X
  172. X        +o Large dialing directory
  173. X        +o Auto-login shell scripts
  174. X        +o Automatic redial feature
  175. X        +o Supports popular file transfer protocols
  176. X        +o External file transfer program support
  177. X        +o Data logging (log of the terminal session)
  178. X        +o Printer logging
  179. X        +o Screen dump
  180. X        +o Shell escapes
  181. X        +o Help screen
  182. X        +o Keyboard macros
  183. X        +o User customization
  184. X        +o Administrative logging of phone calls
  185. X        +o Administrative limits on long distance access
  186. X
  187. X    Pcomm  does  not  emulate  any  particular  terminal.   Whatever
  188. X    terminal you're on, is what the remote system "sees".
  189. X
  190. X    1.1 Abbreviations
  191. X
  192. X    Pcomm uses the notation "^A-X" to mean control-A followed by the
  193. X    letter  X.  The dash (-) in the notation is just for clarity; it
  194. X    is not included in the actual command sequence.  Also, there  is
  195. X    no distinction between upper and lower case letters.
  196. X
  197. X    The following abbreviations appear in Pcomm:
  198. X
  199. X        <CR>    carriage return key (sometimes labeled "Enter")
  200. X        <ESC>    escape key
  201. X        <SPACE>    space bar
  202. X        <DEL>    del key
  203. X        <up>    up arrow key
  204. X        <down>    down arrow key
  205. X        LF    line feed character (control-J)
  206. X        CR    carriage return character (control-M)
  207. X
  208. X    1.2 Requirements
  209. X
  210. X    Pcomm will not run on terminals with a screen size of less  than
  211. X    80 columns by 24 lines or on terminals that lack cursor movement
  212. X    capabilities.  For terminals without arrow keys, use the  letter
  213. X    "U"  in place of "up arrow" and the letter "N" in place of "down
  214. X    arrow" (the letter "D" would have been a  more  obvious  choice,
  215. X    but, unfortunately, it is used elsewhere).
  216. X
  217. X    1.3 Support files
  218. X
  219. X    Pcomm uses four support files, namely:
  220. X
  221. X        pcomm.dial_dir    the dialing directory
  222. X        pcomm.extrnl    the external file transfer programs
  223. X        pcomm.modem    the modem/TTY database
  224. X        pcomm.param    the start-up default parameters
  225. X
  226. X    There is a default directory (typically  "/usr/local/lib/pcomm")
  227. X    where the "standard" support files live.  Since the average user
  228. X    won't have write permission on these files,  it's  assumed  that
  229. X    they  will copy one or more of these standard files to their own
  230. X    directories and edit them to suit their needs.
  231. X
  232. X    Pcomm can use the environmental variable "PCOMM" to  search  for
  233. X    these  "private"  support  files.   If  used,  the variable must
  234. X    contain the path to the directory containing the files.  You can
  235. X    "mix  and  match" the use of standard and private support files.
  236. X    For example, the pcomm.modem file is rarely changed by the  user
  237. X    so  there  would  be  no  need  to copy that file to the private
  238. X    directory.
  239. X
  240. X    Pcomm also uses normal Unix shell scripts to perform the  "chat"
  241. X    sequences necessary to automatically log a user onto a system.
  242. X
  243. X    The following directories  are  searched  to  find  the  support
  244. X    files and the auto-login shell scripts:
  245. X
  246. X        +o directory given with the "-d" option
  247. X        +o directory in the PCOMM environmental variable
  248. X        +o the current working directory
  249. X        +o the default directory (compiled into Pcomm)
  250. X
  251. X    2. RUNNING PCOMM
  252. X
  253. X    Pcomm has the following command line syntax.
  254. X
  255. X        pcomm [-d directory] [-f system name]
  256. X
  257. X    The "-d" option allows you to specify an additional path  to  be
  258. X    used when searching for the Pcomm support files.  This option is
  259. X    often useful for "borrowing" someone else's dialing directory.
  260. X
  261. X    The "-f" option is used to specify automatic dialing of an entry
  262. X    in  the  dialing  directory.   The  "name"  field in the dialing
  263. X    directory (described later) is checked against the string  given
  264. X    on  the  command  line.   If  a  match  is  found, that entry is
  265. X    automatically dialed.  The match does  not  consider  upper  and
  266. X    lower case differences.
  267. X
  268. X    2.1 Hot key
  269. X
  270. X    Pcomm uses a "hot key" to precede each command.  (The  value  of
  271. X    the  hot key is a user tunable parameter, but for the purpose of
  272. X    this document we'll assume the hot key is defined as control-A).
  273. X
  274. X    The hot key is used to put  Pcomm  in  the  command  mode.   For
  275. X    example,  to  get the help screen, you type control-A (to get to
  276. X    the command mode)  then  the  number  0  (to  display  the  help
  277. X    screen).   When  a  command  is  completed, Pcomm returns to the
  278. X    terminal mode.
  279. X
  280. X    NOTE:  While in the command mode,  the  communication  with  the
  281. X    remote system is temporarily suspended.
  282. X
  283. X    2.2 Status line
  284. X
  285. X    Whenever Pcomm is in the  command  mode  (or  is  not  currently
  286. X    connected  to a remote) a status line is displayed at the bottom
  287. X    of the screen.  A typical status line might look like this:
  288. X
  289. X    +----------------------------------------------------------------------+
  290. X    | ^A-0 HELP  | No TTY | FDX | 1200 E71 | LOG OFF | PTR OFF | CR  | CR  |
  291. X    +----------------------------------------------------------------------+
  292. X
  293. X    The eight fields of the status line are:
  294. X
  295. X        +o help screen command (or a temporary message)
  296. X        +o name of the TTY device in use
  297. X        +o duplex mode (FDX = full duplex, HDX = half duplex)
  298. X        +o current line settings
  299. X        +o status of data logging option
  300. X        +o status of printer logging option
  301. X        +o incoming CR translation
  302. X        +o outgoing CR translation
  303. X
  304. X    2.3 Help screen
  305. X
  306. X    The help screen gives  a  brief  review  of  all  the  available
  307. X    commands.   To  access  the  help screen type ^A and "0" (zero).
  308. X    The typical help screen will look like this:
  309. X
  310. X  +---------------------------------------------------------------------------+
  311. X  |                           P C O M M     H E L P                           |
  312. X  |---------------------------------------------------------------------------|
  313. X  |                                                                           |
  314. X  |      Major Functions        Utility Functions        File Functions       |
  315. X  |                                                                           |
  316. X  | Dialing Directory. ^A-D  Program Info .... ^A-I  Send Files .... ^A-<up>  |
  317. X  | Auto Redial ...... ^A-R  Setup Screen .... ^A-S  Receive Files . ^A-<down>|
  318. X  | Keyboard Macros .. ^A-M  Change Directory. ^A-B  Pass Thru Mode. ^A-T     |
  319. X  | Line Settings .... ^A-P  Clear Screen .... ^A-C  Directory ..... ^A-F     |
  320. X  | Exit Pcomm ....... ^A-X  Toggle Duplex ... ^A-E  Screen Dump ... ^A-G     |
  321. X  | Unix Gateway ..... ^A-4  Hang Up Phone ... ^A-H  Start Data Log. ^A-1     |
  322. X  |                          Printer On/Off .. ^A-L  Toggle Log .... ^A-2     |
  323. X  |                          Toggle CR-CR/LF . ^A-3                           |
  324. X  |                          Break Key ....... ^A-7                           |
  325. X  |                                                                           |
  326. X  +------------------------ Press any key to continue ------------------------+
  327. X
  328. X    2.4 Exit Pcomm
  329. X
  330. X    To exit Pcomm, you type ^A and "x" to access the exit window.
  331. X
  332. X    +-- Exit -----------------------+
  333. X    |                               |
  334. X    |   Exit to Unix? (y/n): _      |
  335. X    |                               |
  336. X    +-------------------------------+
  337. X
  338. X    To exit, you press the letter "y" (carriage return not required).
  339. X
  340. X    3. SETUP SCREENS
  341. X
  342. X    Pcomm allows you to change many of the default parameters.   The
  343. X    setup  screen  is  accessed by typing ^A and "s".  The following
  344. X    screen shows the sub-menu choices:
  345. X
  346. X    ------------------------ Setup Menu ----------------------------
  347. X
  348. X                1) TTY Setup
  349. X                2) Modem Setup
  350. X                3) Terminal Setup
  351. X                4) General Setup
  352. X                5) ASCII Transfer Setup
  353. X                6) External Proctol Setup
  354. X                S) Save setup to disk
  355. X
  356. X    ----------------------------------------------------------------
  357. X    OPTION ==> _                                 Press <ESC> to exit
  358. X
  359. X    To select one of the sub-menu choices, you type the  number  (or
  360. X    letter) at the "OPTION ==>" prompt.  To exit from a sub-menu and
  361. X    return to this setup menu screen, you press the escape key.
  362. X
  363. X    Changes made affect the current Pcomm session only.  To make the
  364. X    changes become the default, you select the "s" option.
  365. X
  366. X    3.1 Prompting
  367. X
  368. X    There are several different types of prompts used in  the  setup
  369. X    screens.   The  prompts  use the bottom two lines on the display
  370. X    for user input and to give more information  on  what  is  being
  371. X    asked.   Pcomm  will  beep at any illegal input.  The escape key
  372. X    <ESC> will abort any prompt.  The prompt types are:
  373. X
  374. X        +o  Character  prompt.   Asks  you  to  input  a   single
  375. X        character.
  376. X
  377. X        +o String prompt.  Asks you to input a word or  group  of
  378. X        characters.
  379. X
  380. X        +o Numeric prompt.  Asks you for a number.
  381. X
  382. X        +o Menu prompt.  Shows  a  selection and  allows  you  to
  383. X        choose  the  current  selection by pressing the carriage
  384. X        return or change the selection  by  pressing  the  space
  385. X        bar.
  386. X
  387. X    3.2 TTY setup
  388. X
  389. X    The TTY setup allows you to assign the serial ports  that  Pcomm
  390. X    is allowed to use, and what is attached to each port.  A typical
  391. X    TTY setup screen might look like this:
  392. X
  393. X    -------------------------- TTY Setup ---------------------------
  394. X
  395. X         TTY name        Modem name      Init speed
  396. X
  397. X         1) tty10        HAYES               0
  398. X         2) tty11        HAYES               0
  399. X         3) tty12        DIRECT              0
  400. X         4) tty13        TELEBIT             0
  401. X         5) tty13        FAST_TELEBIT        0
  402. X         6)                                  0
  403. X         7)                                  0
  404. X         8)                                  0
  405. X         9)                                  0
  406. X        10)                                  0
  407. X
  408. X        A) Add a TTY entry
  409. X        D) Delete a TTY entry
  410. X
  411. X    ----------------------------------------------------------------
  412. X    OPTION ==> _                               Press <ESC> to return
  413. X
  414. X    You may edit an entry by typing the entry number at the  prompt.
  415. X    To add an entry, you type "A" at the prompt, etc.
  416. X
  417. X    The TTY setup fields are:
  418. X
  419. X        1) TTY name.  This is the name of the serial  port  that
  420. X        Pcomm  will  be  allowed  to  use.  Notice that the path
  421. X        component of the name, "/dev/" is not used.
  422. X
  423. X        2) Modem name.  This a key word that is  used  later  to
  424. X        link the modem database with the TTY database.  The name
  425. X        could be any combination of  letters  or  numbers  (both
  426. X        upper and lower case).
  427. X
  428. X    NOTE:  All hard-wired  ports  (ports  without  modems  attached)
  429. X    *must* use the word "DIRECT" for the modem name.
  430. X
  431. X        3) Init speed.  Normally Pcomm will initialize the modem
  432. X        at  the baud rate in the dialing directory.  If the init
  433. X        speed is non-zero, the initialization string  is  always
  434. X        sent  at  the  specified  baud  rate.   The baud rate is
  435. X        selected from a "menu prompt".  See Appendix C  for more
  436. X        information about the use of this feature.
  437. X
  438. X    NOTE:  It is often best to put the fastest modem/TTYs at the end
  439. X    of the TTY database.
  440. X
  441. X    3.3 Modem setup
  442. X
  443. X    The modem setup contains the commands to make  the  modem  dial,
  444. X    hang up the phone, etc.  A typical modem setup screen might look
  445. X    like this:
  446. X
  447. X    -------------------------- Modem Setup -------------------------
  448. X
  449. X         1) Modem name (1 of 4) ... HAYES
  450. X         2) Modem init string ..... ATS7=45S11=70E0Q0V1X4&D2!
  451. X         3) Dialing command ....... ATDT
  452. X         4) Dialing cmd suffix .... !
  453. X         5) Hang up string ........ ~~+++~~ATH0!
  454. X         6) Auto baud detect ...... Y
  455. X         7) 300 baud connect ...... CONNECT!
  456. X         8) 1200 baud connect ..... CONNECT 1200
  457. X         9) 2400 baud connect ..... CONNECT 2400
  458. X        10) 4800 baud connect .....
  459. X        11) 9600 baud connect .....
  460. X        12) 19200 baud connect ....
  461. X        13) No connect string 1 ... BUSY
  462. X        14) No connect string 2 ... VOICE
  463. X        15) No connect string 3 ... NO CARRIER
  464. X        16) No connect string 4 ...
  465. X
  466. X    ----------------------------------------------------------------
  467. X    OPTION ==> _                               Press <ESC> to return
  468. X
  469. X    The fields of the modem setup are:
  470. X
  471. X        1) Modem name.  This is the  key  word  that  links  the
  472. X        modem  database with the TTY database.  A menu prompt is
  473. X        used  to  select  the  modem  name  (and  the  remaining
  474. X        parameters  that  go  with  it).   The  "(1 of 4)" field
  475. X        indicates there are additional modems in the database.
  476. X
  477. X        2) Modem initialization string.  This  is  sent  to  the
  478. X        modem whenever the port is selected.  Consult your modem
  479. X        manual for the codes to be used.  Notice the use of  the
  480. X        "!"  character.  This is the "character synonym" for the
  481. X        carriage return.
  482. X
  483. X    NOTE:  See section  3.5  for  the  complete  list  of  character
  484. X    synonyms.  To remove the special meaning of a character synonym,
  485. X    you must prepend a "\" to the character.
  486. X
  487. X        3) Dialing command.  The first part of  the  command  to
  488. X        make  the  modem  dial.   It  is  assumed that the phone
  489. X        number will immediately follow.
  490. X
  491. X        4) Dialing command suffix.  The last part of the command
  492. X        to  make  the  modem  dial.   Typically this will be the
  493. X        carriage return "character synonym".
  494. X
  495. X        5) Hang up string.  The command to make the  modem  hang
  496. X        up  the  phone.   The  character  synonym for a 1 second
  497. X        pause is the tilde "~" character.
  498. X
  499. X        6) Auto baud detect.  Should Pcomm attempt to change the
  500. X        baud  rate  of  the  TTY  to  the baud rate matching the
  501. X        connect  string?   This  feature  requires  the  connect
  502. X        strings to be unique.
  503. X
  504. X        7-12) Connect strings.  The  return  messages  when  the
  505. X        modem   has  connected  to  the  remote.   If  different
  506. X        messages are returned for each baud rate  at  which  the
  507. X        modem answers, then they should be specified.
  508. X
  509. X    NOTE:  Pcomm uses the connect strings to  determine  which  baud
  510. X    rates  the  modem is capable of supporting.  For example, if the
  511. X    4800 baud connect string  is  empty,  Pcomm  assumes  the  modem
  512. X    can not support 4800 baud.
  513. X
  514. X    NOTE:  If two connect strings are very  similar,  (for  example,
  515. X    "CONNECT"  is  entirely  contained  in  "CONNECT  1200"),  it is
  516. X    possible that the return code from  the  modem  will  match  the
  517. X    incorrect  string.   To  prevent  this  from  happening, use the
  518. X    command synonym for the carriage return to terminate the shorter
  519. X    string (for example, use "CONNECT!" instead of "CONNECT").
  520. X
  521. X        13-16) No connect strings.  The messages returned by the
  522. X        modem when no connection is made.
  523. X
  524. X    3.4 Terminal setup
  525. X
  526. X    The terminal setup allows you to define  the  hot  key  and  the
  527. X    mapping of the end-of-line characters.  A typical terminal setup
  528. X    menu will look like this:
  529. X
  530. X    ---------------------- Terminal Setup --------------------------
  531. X
  532. X            1) Hot key (decimal) ...... 1
  533. X            2) ASCII version of hot ... ^A
  534. X
  535. X            3) Duplex ................. FULL
  536. X            4) Flow control ........... XON/XOFF
  537. X            5) CR translation (in) .... CR
  538. X            6) CR translation (out) ... CR
  539. X
  540. X    ----------------------------------------------------------------
  541. X    OPTION ==> _                               Press <ESC> to return
  542. X
  543. X    The fields in the terminal setup are:
  544. X
  545. X        1) Hot key.  This is  the  decimal  code  for  the  user
  546. X        definable  hot key.  Consult an ASCII/decimal conversion
  547. X        chart for the decimal values of other characters.
  548. X
  549. X        2) ASCII version of hot  key.   This  is  the  printable
  550. X        version  of the hot key used by Pcomm in the help screen
  551. X        and status line.
  552. X
  553. X        3) Duplex.  A menu prompt is  shown  to  select  between
  554. X        FULL  duplex  and HALF duplex.  In the half duplex mode,
  555. X        characters sent to the remote system are  also  sent  to
  556. X        the  screen.   (The  duplex mode can also be changed "on
  557. X        the fly" by the ^A-E command.)
  558. X
  559. X        4) Flow control.  A  menu  prompt  is  shown  to  select
  560. X        between  XON/XOFF  flow  control  and  NONE.   The  flow
  561. X        control selected here is used only during  the  terminal
  562. X        session, not during file transfers.
  563. X
  564. X        5-6) CR translations.  The  end-of-line  characters  for
  565. X        both  incoming  and  outgoing  carriage  returns  can be
  566. X        altered to suit  the  remote  system's  needs.   A  menu
  567. X        prompt provides the following choices:
  568. X
  569. X            +o CR (no translation)
  570. X            +o CR/LF translate CR to CR/LF
  571. X
  572. X        The incoming CR translation can also be changed "on  the
  573. X        fly" with the ^A-3 command.
  574. X
  575. X    3.5 General setup
  576. X
  577. X    The general setup allows you to define  the  character  synonyms
  578. X    and  the  default  files  used  by  the  screen  dump  and other
  579. X    features.  A typical general setup screen might look like this:
  580. X
  581. X    ------------------------- General Setup ------------------------
  582. X
  583. X             1) Default log file ....... pcomm.log
  584. X             2) Screen dump file ....... pcomm.dump
  585. X
  586. X             3) Strip high bit  ........ YES
  587. X
  588. X             4) Pause character ........ ~
  589. X             5) CR character ........... !
  590. X             6) CTRL character ......... ^
  591. X             7) ESC character .......... |
  592. X             8) Break character ........ %
  593. X
  594. X             9) Aborted downloads ...... KEEP
  595. X
  596. X            10) Connect delay (sec) .... 35
  597. X            11) Redial delay (sec) ..... 5
  598. X
  599. X    ----------------------------------------------------------------
  600. X    OPTION ==> _                               Press <ESC> to return
  601. X
  602. X    The general setup fields are:
  603. X
  604. X        1) Default log file.  The file name to be  used  as  the
  605. X        default  when the data logging is activated (^A-1).  The
  606. X        log file name can be changed "on the fly"  by  the  ^A-1
  607. X        command.
  608. X
  609. X        2) Screen dump file.  The file name to be used  for  the
  610. X        screen dump command (^A-G).
  611. X
  612. X        3) Strip high bit.  Should Pcomm strip the eighth bit on
  613. X        incoming  and outgoing characters?  A menu prompt allows
  614. X        you to select YES or  NO.   This  feature  is  not  used
  615. X        during file transfers.
  616. X
  617. X        4-8) Character synonyms.  These are symbols  that  Pcomm
  618. X        uses to represent special characters (or perform special
  619. X        functions) when sending commands to the modem.  Synonyms
  620. X        are   useful   for   entering   and  displaying  special
  621. X        characters in a human readable form.  The synonyms are:
  622. X
  623. X            +o Pause for 1 second
  624. X            +o The carriage return character (control-M)
  625. X            +o Convert the next character to control-xx
  626. X            +o The escape character (control-[)
  627. X            +o Send a modem break
  628. X
  629. X    NOTE:  To prevent the special meaning of one of these characters
  630. X    prepend a "\" to it.
  631. X
  632. X        9) Aborted downloads.  When a download  aborts  (fails),
  633. X        should  the  partially completed file be kept?  The menu
  634. X        prompt allows "KEEP" or "DELETE".
  635. X
  636. X        10) Connect delay.  The number  of  seconds  Pcomm  will
  637. X        wait for the modem to return a status code.
  638. X
  639. X        11) Redial delay.  The number of seconds to wait  before
  640. X        Pcomm tries to call the number again.
  641. X
  642. X    3.6 ASCII transfer setup
  643. X
  644. X    This setup screen allows you to select options to  be  used  for
  645. X    ASCII  uploads  and  downloads.   A typical ASCII transfer setup
  646. X    will look like this:
  647. X
  648. X    ---------------------- ASCII Transfer Setup --------------------
  649. X
  650. X                  ASCII UPLOAD
  651. X
  652. X            1) Echo locally ........... NO
  653. X            2) Expand blank lines ..... NO
  654. X            3) CR delay (ms) .......... 0
  655. X            4) Pace the output ........ NO
  656. X            5) CR translation ......... NONE
  657. X            6) LF translation ......... ADD CR
  658. X
  659. X                 ASCII DOWNLOAD
  660. X
  661. X            7) Transfer timeout (sec) . 5
  662. X            8) CR translation ......... STRIP
  663. X            9) LF translation ......... NONE
  664. X
  665. X    ----------------------------------------------------------------
  666. X    OPTION ==> _                               Press <ESC> to return
  667. X
  668. X    The fields are:
  669. X
  670. X        1) Echo locally.  This is similar to the  duplex  option
  671. X        in  that  it  copies  outgoing characters to the screen.
  672. X        The options are YES and NO.
  673. X
  674. X        2) Expand blank lines.  Should a blank line (LF alone)
  675. X        be expanded to a space and LF?  Some BBS systems use a
  676. X        blank line to signal the end of an  ASCII  upload.   The
  677. X        options are YES and NO.
  678. X
  679. X        3) CR delay.  The delay in milliseconds to be used  when
  680. X        sending a CR.  The menu prompt limits the choice to 0,
  681. X        100, or 150.
  682. X
  683. X        4) Pace output.  Should each character sent be  delayed?
  684. X        Very  old  BBS  systems may require this.  The choice is
  685. X        YES or NO.
  686. X
  687. X        5)  CR  translation.   The  menu  prompt  provides   the
  688. X        following choices for upload translations:
  689. X
  690. X            +o NONE (no translation)
  691. X            +o ADD LF translate CR to CR/LF
  692. X            +o STRIP remove the CR character
  693. X
  694. X        6) LF translation. Same as above except the choices are:
  695. X
  696. X            +o NONE (no translation)
  697. X            +o ADD CR translate LF to CR/LF
  698. X            +o STRIP remove the LF character
  699. X
  700. X        7) Transfer timeout.  The number of seconds to  be  used
  701. X        to determine the end of an ASCII download.  You can halt
  702. X        the transfer before the timer goes off  by  hitting  the
  703. X        <ESC> key.
  704. X
  705. X        8-9) Same as 5) and 6) above, except the translations
  706. X        apply to ASCII downloading.
  707. X
  708. X    3.7 External protocol setup
  709. X
  710. X    This setup screen allows you to imbed the name of external  file
  711. X    transfer  programs  into  the list of available protocols.  When
  712. X    transferring files, the external program name will appear on the
  713. X    list of options along with the built-in protocols.
  714. X
  715. X    -------------------- External Protocol Setup -------------------
  716. X
  717. X                    UPLOAD
  718. X
  719. X        Name     Command Line             Requires file list?
  720. X         1) zmodem   sz                               Y
  721. X         2)                                           N
  722. X         3)                                           N
  723. X
  724. X                   DOWNLOAD
  725. X
  726. X        Name     Command Line             Requires file list?
  727. X         4) zmodem   rz                               N
  728. X         5)                                           N
  729. X         6)                                           N
  730. X
  731. X    ----------------------------------------------------------------
  732. X    OPTION ==> _                               Press <ESC> to return
  733. X
  734. X    To change a line (or add a new one), enter the  line  number  at
  735. X    the  prompt.   You  will  be  prompted for the Name, the Command
  736. X    Line, and the 'Requires file list?' flag.  To remove  an  entry,
  737. X    enter a single space character at the Name prompt.
  738. X
  739. X    The Command Line is the Unix command  that  you  would  normally
  740. X    type  in  to invoke the program (minus the names of the files to
  741. X    be transferred).  The  last  field  in  the  setup  is  used  to
  742. X    indicate  whether  or not Pcomm should prompt for a list of file
  743. X    names to be added to the command.
  744. X
  745. X    NOTE:  Pcomm adds a single space character and  the  file  names
  746. X    (if any) to the end of the command.
  747. X
  748. X    NOTE:  The program itself isn't "imbedded" into Pcomm (it  still
  749. X    gets  called like any other external program), only the name and
  750. X    invocation information is actually incorporated into Pcomm.
  751. X
  752. X    4. MAJOR FUNCTIONS
  753. X
  754. X    When Pcomm is invoked without  the  "-f"  command  line  option,
  755. X    you're  placed  in  the  terminal mode with a blank screen and a
  756. X    status line.  However, since Pcomm hasn't yet selected a  serial
  757. X    port  to  use, characters typed at the blank screen are ignored.
  758. X    Normally the first command you'll use is ^A-D to  bring  up  the
  759. X    dialing directory menu.
  760. X
  761. X    4.1 Dialing directory
  762. X
  763. X    To dial another system, you type  ^A-D  to  access  the  dialing
  764. X    directory menu, then enter the entry number at the prompt.
  765. X
  766. X    The entry number could be preceded by a  special  long  distance
  767. X    dialing  code  such as "#5" in lieu of "5" alone.  Long distance
  768. X    codes could contain access numbers such as those  that  MCI  and
  769. X    Sprint require.
  770. X
  771. X    A typical dialing directory will look like this:
  772. X
  773. X    +----------------------------------------------------------------------+
  774. X    |                 D I A L I N G       D I R E C T O R Y                |
  775. X    |----------------------------------------------------------------------|
  776. X    |       Name                  Number       Baud P D S Dpx  Script/TTY  |
  777. X    |  1- Abbey Road        1 (512) 590-6036   2400-N-8-1  F               |
  778. X    |  2- Tel-Med-Com               555-8686   9600-E-7-1  F               |
  779. X    |  3- C Board           1 (619) 722-8724   2400-N-8-1  F               |
  780. X    |  4- Crest             1 (213) 471-2518   2400-N-8-1  F   Sample      |
  781. X    |  5- Last Chance       1 (219) 762-8411   2400-E-7-1  F               |
  782. X    |  6- Killer            1 (214) 827-1994   1200-E-7-1  F               |
  783. X    |  7- System A (direct)                   19200-N-8-1  F   tty12       |
  784. X    |  8-                                      1200-E-7-1  F               |
  785. X    |  9-                                      1200-E-7-1  F               |
  786. X    | 10-                                      1200-E-7-1  F               |
  787. X    |                                                                      |
  788. X    |   ==> _    R Revise           M Manual Dialing    Entry to Dial      |
  789. X    |            P LD Codes         D Delete Entry      <CR> Scroll Down   |
  790. X    |            <up>/<down> Page   L Print Entries     <ESC> Exit         |
  791. X    |                                                                      |
  792. X    |   LD Codes Active: @ #                                               |
  793. X    |                                                                      |
  794. X    +----------------------------------------------------------------------+
  795. X
  796. X    The fields of the dialing directory are:
  797. X
  798. X        +o Name.  The name of the remote system.
  799. X
  800. X        +o Number.  The telephone number to the remote system.
  801. X
  802. X    NOTE:  The "(", ")", "-", and  space  characters  are  just  for
  803. X    looks,  and  don't  get  sent  to  the  modem.   To  prevent the
  804. X    stripping of one of these characters, prepend a "\" to it.
  805. X
  806. X        +o Line settings.  The communications settings to be used
  807. X        when dialing that entry.  The range of values are:
  808. X
  809. X            Baud    Parity     Data bits  Stop bits
  810. X            -----    --------   ---------  ---------
  811. X            300    N - none    7    1
  812. X            1200    E - even    8    2
  813. X            2400    O - odd
  814. X            4800
  815. X            9600
  816. X            19200
  817. X
  818. X        +o Duplex.  The duplex mode.  Either "F" for full or  "H"
  819. X        for half.
  820. X
  821. X        +o Script/TTY.  The name of the shell script to  be  used
  822. X        as  a  auto-login  "chat"  sequence.  This field is also
  823. X        used to specify a particular TTY for the entry.
  824. X
  825. X    NOTE:  On all hard-wired ports, the  script  field  is  used  to
  826. X    contain  the  name  of  the  port.   For  example, if tty12 is a
  827. X    hard-wired port to "System A", then the dialing directory  entry
  828. X    for "System A" will have "tty12" in the script field.
  829. X
  830. X    The commands at the dialing directory prompt are:
  831. X
  832. X        R) Revise (or add) a dialing  directory  entry  or  long
  833. X        distance  dialing code.  Prompts you to save the changes
  834. X        to disk.  A typical revise screen would look like this:
  835. X
  836. X    +--------------------------------------------------------------+
  837. X    |                                                              |
  838. X    |   Entry to revise? _          (Entry Number, +,-,@,#)        |
  839. X    |                                                              |
  840. X    +--------------------------------------------------------------+
  841. X
  842. X        If a dialing directory entry is selected, each field  of
  843. X        the  entry  is shown with its current settings.  You can
  844. X        enter a new value, press a carriage return to skip  past
  845. X        a  field,  or  enter a single space character to erase a
  846. X        field.  An <ESC> at any field will abort the command.
  847. X
  848. X        P) Print (display) the long distance dialing codes.
  849. X
  850. X        <up>/<down>) Scroll the dialing directory up or down  10
  851. X        lines.   Use  the  up and down arrow keys to access this
  852. X        feature.
  853. X
  854. X        M) Manual dial.  Prompts you for a phone  number  rather
  855. X        than using a number already in the dialing directory.
  856. X
  857. X        D) Delete an entry or a range of entries.   Prompts  you
  858. X        to save the changes to disk.
  859. X
  860. X        L) Print.  Send the dialing directory to the printer  or
  861. X        a file of your choice.
  862. X
  863. X        1-100) Entry number.  Dial  the  phone  for  that  entry
  864. X        number.   If  the  script  field  contains the name of a
  865. X        valid Unix shell script, that script is  "played"  after
  866. X        the  connection is made to perform the auto-login "chat"
  867. X        sequences.  See  section  8  of  this  manual  for  more
  868. X        details  on  the  format  and  use  of  auto-login shell
  869. X        scripts.
  870. X
  871. X    NOTE:  To access the port directly without dialing  (perhaps  to
  872. X    send  the dial codes yourself), select an empty entry or enter a
  873. X    single space character at the phone number prompt of the  manual
  874. X    dial option.
  875. X
  876. X        <CR> Carriage return.  Scroll the dialing directory down
  877. X        one line.
  878. X
  879. X    4.2 Redial
  880. X
  881. X    The redial feature is a misnomer; it really is a queuing  system
  882. X    that  allows  Pcomm to dial several numbers in a cycle until one
  883. X    of them answers.
  884. X
  885. X    When you invoke the redial command with  ^A-R,  you're  prompted
  886. X    for  a list of dialing directory numbers.  (You may also prepend
  887. X    a long distance code to the entry number).
  888. X
  889. X    +-- Redial Queue ----------------------------------------------+
  890. X    |                                                              |
  891. X    |   Directory Entry Number(s): _                               |
  892. X    |                                                              |
  893. X    |                  (<CR> for previous numbers)                 |
  894. X    +--------------------------------------------------------------+
  895. X
  896. X    To redial the previous number, press a carriage return alone at
  897. X    the prompt.  An <ESC> aborts this command.
  898. X
  899. X    4.3 Keyboard macros
  900. X
  901. X    Keyboard macros are used as a shortcut  to  send  commonly  used
  902. X    strings  to  the  remote system with only a few keystrokes.  The
  903. X    characters used to identify the macros are  the  shifted  number
  904. X    keys.   For  example,  if the string "hello" was assigned to the
  905. X    "!" key (the shifted number 1 key), then when  you  press  ^A-!,
  906. X    the string "hello" is sent to the remote.
  907. X
  908. X    To review or edit the  keyboard  macros,  you  type  ^A-M.   The
  909. X    following screen will appear:
  910. X
  911. X        +------------------------------------------------------+
  912. X        |                   Keyboard Macros                    |
  913. X        |------------------------------------------------------|
  914. X        |                                                      |
  915. X        |  ^A-! hello                                          |
  916. X        |  ^A-@                                                |
  917. X        |  ^A-#                                                |
  918. X        |  ^A-$                                                |
  919. X        |  ^A-%                                                |
  920. X        |  ^A-^                                                |
  921. X        |  ^A-&                                                |
  922. X        |  ^A-*                                                |
  923. X        |  ^A-(                                                |
  924. X        |  ^A-)                                                |
  925. X        |                                                      |
  926. X        |  Macro key to revise: _                              |
  927. X        |                                                      |
  928. X        +---------------- Press <ESC> to continue -------------+
  929. X
  930. X    To edit a macro, you type the macro key character  (without  the
  931. X    leading  hot key).  After typing the new string information, you
  932. X    will be prompted to save the changes to disk.  To erase an entry
  933. X    enter a single space character.
  934. X
  935. X    NOTE:  All of the character synonyms described  in  section  3.5
  936. X    are available for use with the keyboard macros.
  937. X
  938. X    4.4 Line settings
  939. X
  940. X    The line settings menu is  invoked  by  ^A-P.   A  typical  line
  941. X    settings menu will look like this:
  942. X
  943. X        +-----------------------------------------------+
  944. X        |                Line Settings                  |
  945. X        |-----------------------------------------------|
  946. X        |                                               |
  947. X        |       Current Settings:  1200,E,7,1           |
  948. X        |                                               |
  949. X        |     1)    300,E,7,1      7)    300,N,8,1      |
  950. X        |     2)   1200,E,7,1      8)   1200,N,8,1      |
  951. X        |     3)   2400,E,7,1      9)   2400,N,8,1      |
  952. X        |     4)   4800,E,7,1     10)   4800,N,8,1      |
  953. X        |     5)   9600,E,7,1     11)   9600,N,8,1      |
  954. X        |     6)  19200,E,7,1     12)  19200,N,8,1      |
  955. X        |                                               |
  956. X        |   Parity       Data Bits       Stop Bits      |
  957. X        |   13) Odd      14) 7 bits      16) 1 bit      |
  958. X        |                15) 8 bits      17) 2 bits     |
  959. X        |                                               |
  960. X        |   18) Save Changes      YOUR CHOICE: _        |
  961. X        |                                               |
  962. X        +------------- Press <ESC> to return -----------+
  963. X
  964. X    While dialing  a  remote,  the  line  settings  in  the  dialing
  965. X    directory  entry  are  automatically  used.   Therefore the line
  966. X    settings menu is used to fine tune the values during a  terminal
  967. X    session or to select the parameters for manual dialing.  You can
  968. X    make the current setting the  default  by  selecting  the  "Save
  969. X    Changes" option.
  970. X
  971. X    The current line settings are also displayed in the status line.
  972. X
  973. X    NOTE:  During file transfers,  certain  parameters  (namely  the
  974. X    data  bits  and parity) will be temporarily changed.  The status
  975. X    line will *not* reflect these temporary promotions.
  976. X
  977. X    4.5 Exit Pcomm
  978. X
  979. X    To exit Pcomm, you type ^A-X.  The phone is hung up (if  a  call
  980. X    was  in  progress),  the  print  and  data  logging features are
  981. X    closed, and the TTY resources are released.
  982. X
  983. X    NOTE:  Pcomm drops the DTR (Data Terminal  Ready)  on  the  port
  984. X    before exiting to Unix.
  985. X
  986. X    4.6 Unix gateway
  987. X
  988. X    To temporarily suspend Pcomm and spawn a Unix  shell,  you  type
  989. X    ^A-4.   To  return  to  Pcomm,  you  exit  the  shell  normally,
  990. X    typically with ^D or "exit".
  991. X
  992. X    NOTE:  The SHELL environmental variable  is  used  to  determine
  993. X    which program to invoke.
  994. X
  995. X    5. UTILITY FUNCTIONS
  996. X
  997. X    The following commands perform secondary functions.
  998. X
  999. X    5.1 Program information
  1000. X
  1001. X    To display the opening information screen, you type ^A-I.  Press
  1002. X    any key to return to the terminal mode.
  1003. X
  1004. X    5.2 Setup screen
  1005. X
  1006. X    The setup screens are described in detail in section 3  of  this
  1007. X    manual.
  1008. X
  1009. X    5.3 Change directory
  1010. X
  1011. X    To change the  current  working  directory  while  still  inside
  1012. X    Pcomm,  you  type  ^A-B.  A screen similar to the following will
  1013. X    appear:
  1014. X
  1015. X    +-- Change directory ------------------------------------------+
  1016. X    |                                                              |
  1017. X    |   Current directory: /usr/egray                              |
  1018. X    |   New directory: _                                           |
  1019. X    |                                                              |
  1020. X    +--------------------------------------------------------------+
  1021. X
  1022. X    Abbreviations known to the shell are  acceptable;  for  example,
  1023. X    the  "~"  character  will be translated to the home directory in
  1024. X    the csh or ksh shell.
  1025. X
  1026. X    5.4 Clear screen
  1027. X
  1028. X    To clear the local screen and home the cursor, you type ^A-C.
  1029. X
  1030. X    NOTE:  The remote system may not  "know"  the  screen  has  been
  1031. X    cleared,  and  may  make  assumptions  about the screen that are
  1032. X    incorrect.
  1033. X
  1034. X    5.5 Toggle duplex
  1035. X
  1036. X    The ^A-E command changes the duplex mode from FULL to  HALF,  or
  1037. X    from  HALF  to  FULL.   The status line shows the current duplex
  1038. X    mode.
  1039. X
  1040. X    5.6 Hang up the phone
  1041. X
  1042. X    To hang up the phone, you type ^A-H.  The  word  "disconnecting"
  1043. X    will briefly show in the status line.
  1044. X
  1045. X    NOTE:  Pcomm drops the DTR (Data Terminal Ready)  after  sending
  1046. X    the hang up string.
  1047. X
  1048. X    5.7 Printer logging
  1049. X
  1050. X    The ^A-L command toggles the printer logging  on  or  off.   The
  1051. X    current printer status is displayed in the status line.
  1052. X
  1053. X    NOTE:  Since all printing goes to the normal  Unix  print  spool
  1054. X    program,  the  characters  will not print on the printer as they
  1055. X    appear on the screen.  The printing will actually begin when the
  1056. X    printer  logging  is  turned *off* and the complete print job is
  1057. X    sent to the spool.
  1058. X
  1059. X    NOTE:  Due to a technical limitation of Pcomm, characters  typed
  1060. X    while in the half duplex mode will not appear in the print log.
  1061. X
  1062. X    5.8 Toggle CR - CR/LF
  1063. X
  1064. X    The  ^A-3  command  toggles  the   incoming   line   termination
  1065. X    characters  between  CR  and CR/LF.  The status line shows
  1066. X    the current settings (in the next to the last field).
  1067. X
  1068. X    5.9 Break
  1069. X
  1070. X    The ^A-7 command sends a modem break to the remote system.   The
  1071. X    word "break" is (very) briefly displayed on the status line.
  1072. X
  1073. X    NOTE:  This not the same as the break key on  the  keyboard  (we
  1074. X    don't  want to send a break to the local system, we want to send
  1075. X    it to the *remote*).
  1076. X
  1077. X    6. FILE FUNCTIONS
  1078. X
  1079. X    One of  the  most  important  features  of  a  telecommunication
  1080. X    program  is  the  ability to transfer files.  The following file
  1081. X    transfer protocols are implemented:
  1082. X
  1083. X    protocol        packet          error           multiple
  1084. X    name            size            detection       files?
  1085. X    ---------       --------        ------------    --------
  1086. X
  1087. X    xmodem          128             checksum/CRC    no
  1088. X    xmodem-1k       128/1024        checksum/CRC    no
  1089. X    modem7          128             checksum        yes *1
  1090. X    ymodem          128/1024        CRC             yes *2
  1091. X    ymodem-g        128/1024        none *3         yes
  1092. X    ASCII           none            none            no
  1093. X    zmodem *4       128/1024        CRC             yes
  1094. X    (external)    ?        ?        ?
  1095. X
  1096. X    Notes:  1 CP/M style file name
  1097. X        2 MSDOS style file name and file size
  1098. X        3 Not needed!
  1099. X        4 zmodem is implemented as an external program
  1100. X
  1101. X    NOTE:  The built-in protocols that send file  name  information,
  1102. X    convert  the  Unix  style  file  name  to  fit  the  MSDOS  name
  1103. X    restrictions.
  1104. X
  1105. X    6.1 External protocols
  1106. X
  1107. X    The external  "protocol"  is  really  a  method  of  running  an
  1108. X    external  program from Pcomm to accomplish a file transfer.  The
  1109. X    most common use of this feature would be to run Kermit  or  some
  1110. X    proprietary  program.
  1111. X
  1112. X    Frequently used external file transfer programs (such as zmodem)
  1113. X    can  have  their  names  imbedded  into  the  list  of available
  1114. X    protocols by using the External Protocol Setup in section 3.7.
  1115. X
  1116. X    To abort an external file transfer, you hit the <ESC> key.   All
  1117. X    other characters typed at the keyboard are ignored.
  1118. X
  1119. X    NOTE: The external protocol feature can also be used (misused?)
  1120. X    to pipe the output of a Unix command to the remote.
  1121. X
  1122. X    6.2 Send files
  1123. X
  1124. X    To send a file to the remote, you'll first have to instruct  the
  1125. X    remote system to receive the file, then type ^A-"up arrow".  The
  1126. X    following screen will appear:
  1127. X
  1128. X                    +----- Upload -----+
  1129. X                    |                  |
  1130. X                    |  1) xmodem       |
  1131. X                    |  2) xmodem-1k    |
  1132. X                    |  3) modem7       |
  1133. X                    |  4) ymodem       |
  1134. X                    |  5) ymodem-g     |
  1135. X                    |  6) ASCII        |
  1136. X                    |  7) zmodem       |
  1137. X                    |  E) (external)   |
  1138. X                    |                  |
  1139. X                    |  <ESC> to Abort  |
  1140. X                    |                  |
  1141. X                    |  Protocol: _     |
  1142. X                    +------------------+
  1143. X
  1144. X    You then select the type of protocol at the prompt, and  another
  1145. X    window similar to this will appear:
  1146. X
  1147. X    +-- Send xmodem -----------------------------------------------+
  1148. X    |                                                              |
  1149. X    |   Enter filename: _                                          |
  1150. X    |                                                              |
  1151. X    +--------------------------------------------------------------+
  1152. X
  1153. X    Now you type in the file name  or  names  you'd  like  to  send.
  1154. X    Wildcards known to the shell are acceptable.
  1155. X
  1156. X    Now the file transfer actually begins.  A screen similar to  the
  1157. X    following is displayed during the transfer:
  1158. X
  1159. X                +-------------- Uploading -------------+
  1160. X                |                                      |
  1161. X                |            Protocol: xmodem          |
  1162. X                |           File name: main.c          |
  1163. X                |           File size: 4420            |
  1164. X                |  Error check method: CRC             |
  1165. X                |   Est transfer time: 0:00:50         |
  1166. X                |         Block count: 5               |
  1167. X                |    Percent complete: 11.2%           |
  1168. X                |   Bytes transferred: 640             |
  1169. X                |   Errors this block: 0               |
  1170. X                |   Total error count: 0               |
  1171. X                |        Last message: NONE            |
  1172. X                |                                      |
  1173. X                +------- Press <ESC> to abort ---------+
  1174. X
  1175. X    As  the  transfer  progresses,  the  "block   count",   "percent
  1176. X    complete",  and  "bytes transferred" fields will be continuously
  1177. X    updated.  If errors occur the "errors  this  block"  and  "total
  1178. X    error count" fields will be updated and the "last message" field
  1179. X    will contain a message about the error.
  1180. X
  1181. X    At the end of the transfer, Pcomm will beep and  return  to  the
  1182. X    terminal  mode.   If  an  error  occurred  and  the transfer was
  1183. X    aborted, you will  be  prompted  to  acknowledge  the  error  by
  1184. X    pressing a key before returning to the terminal mode.
  1185. X
  1186. X    6.3 Receive files
  1187. X
  1188. X    To receive a file (or group of  files)  from  a  remote  system,
  1189. X    you'll  have  to  first  instruct  the  remote system, then type
  1190. X    ^A-"down arrow".  Receiving a file  is  basically  the  same  as
  1191. X    sending a file.
  1192. X
  1193. X    NOTE:  Some systems  do  not  pad  the  end  of  the  file  with
  1194. X    control-Z's  and  therefore  files  might  grow  in  length when
  1195. X    received.
  1196. X
  1197. X    NOTE:  Due  to  a  technical  limitation  of  Pcomm,  characters
  1198. X    received  during  an  ASCII  download  will  not reappear on the
  1199. X    screen when you return to the terminal mode.
  1200. X
  1201. X    6.4 Pass thru mode
  1202. X
  1203. X    The pass through mode is used when you have two or more machines
  1204. X    in  a  communications  daisy chain.  The following diagram shows
  1205. X    an example of this type of arrangement:
  1206. X
  1207. X        +---------+          +---------+          +---------+
  1208. X        | IBM PC  |          | Unix    |          | IBM PC  |
  1209. X        | running | -------> | running | -------> | running |
  1210. X        | ProComm | <------- | Pcomm   | <------- | RBBS    |
  1211. X        +---------+          +---------+          +---------+
  1212. X
  1213. X    If a file is to be transferred from  the  last  machine  to  the
  1214. X    first   machine,  the  middle  machine  must  appear  completely
  1215. X    transparent.  The middle machine must "forward the data" without
  1216. X    altering it in any way.  The pass through mode "expires" after a
  1217. X    designated  period  of  inactivity,  after  which  the  user  is
  1218. X    returned to the terminal mode.
  1219. X
  1220. X    To access the pass through mode, you type ^A-T.  The following
  1221. X    screen will appear:
  1222. X
  1223. X    +-- Pass Thru Mode --------------------------------------------+
  1224. X    |                                                              |
  1225. X    |   Enter the expiration time (5-60 sec) : _                   |
  1226. X    |                                                              |
  1227. X    +--------------------------------------------------------------+
  1228. X
  1229. X    NOTE:  While in the pass through mode, no Pcomm command  to  the
  1230. X    middle  machine  will  be honored.  Therefore, the *only* way to
  1231. X    exit this mode is to not type anything on the keyboard until the
  1232. X    expiration period has elapsed.
  1233. X
  1234. X    NOTE:  The baud rates to and from the middle machine need not be
  1235. X    the same, however the slowest speed determines the overall speed
  1236. X    of the transfer (the weakest link in the chain).
  1237. X
  1238. X    6.5 Directory
  1239. X
  1240. X    To obtain a listing of a directory on  the  local  system  while
  1241. X    still  running  Pcomm, you type ^A-F.  The following screen will
  1242. X    appear:
  1243. X
  1244. X    +-- List Directory --------------------------------------------+
  1245. X    |                                                              |
  1246. X    |   Current directory: /usr/egray                              |
  1247. X    |   File spec (wildcards allowed): _                           |
  1248. X    |                                                              |
  1249. X    +--------------------------------------------------------------+
  1250. X
  1251. X    Abbreviations known to the shell  are  valid.   Output  is  sent
  1252. X    through a "more" like program.
  1253. X
  1254. X    NOTE:  Since we're really doing a popen() to the  "ls"  command,
  1255. X    additional command line options are also valid.
  1256. X
  1257. X    6.6 Screen dump
  1258. X
  1259. X    To dump the contents of the current screen  (minus  any  windows
  1260. X    showing)  you type ^A-G.  The contents of the screen are written
  1261. X    to the file specified in the general setup for this purpose.  If
  1262. X    the file already exists, the screen contents are appended to the
  1263. X    file.  The message "screen dump"  will  briefly  appear  in  the
  1264. X    status line.
  1265. X
  1266. X    NOTE:  The screen contents are  subject  to  the  available  VCS
  1267. X    (video  command  sequence) emulation, so an exact representation
  1268. X    is not guaranteed.
  1269. X
  1270. X    6.7 Start data log
  1271. X
  1272. X    To start the data logging, or change  the  file  used  for  data
  1273. X    logging, you type ^A-1.  The following screen will appear:
  1274. X
  1275. X    +-- Start Data Logging ----------------------------------------+
  1276. X    |                                                              |
  1277. X    |   Default log file: pcomm.log                                |
  1278. X    |   New log file: _                                            |
  1279. X    |                                                              |
  1280. X    +--------------------------------------------------------------+
  1281. X
  1282. X    To keep the default file, just press a carriage  return  at  the
  1283. X    prompt,  otherwise,  enter a new file name.  If the file already
  1284. X    exits, the new data is appended to the file.
  1285. X
  1286. X    The status of the logging is shown in the status line.
  1287. X
  1288. X    NOTE:  Due to a technical limitation of Pcomm, characters  typed
  1289. X    while in the half duplex mode will not appear in the log file.
  1290. X
  1291. X    6.8 Toggle logging
  1292. X
  1293. X    To temporarily suspend data logging or to start it again without
  1294. X    being prompted for the file name, you type ^A-2.
  1295. X
  1296. X    7. DIALING WINDOW
  1297. X
  1298. X    While Pcomm is dialing another system, a screen similar  to  the
  1299. X    following is shown:
  1300. X
  1301. X    +----------------------------------------------------------------------+
  1302. X    |                    D I A L I N G      W I N D O W                    |
  1303. X    |----------------------------------------------------------------------|
  1304. X    |                                                                      |
  1305. X    |                        System name: C Board                          |
  1306. X    |                        Pass number: 1                                |
  1307. X    |               Elapse time this try: 4                                |
  1308. X    |              Time at start of dial: 14:53:36                         |
  1309. X    |          Time at start of this try: 14:53:37                         |
  1310. X    |                 Connect delay time: 35                               |
  1311. X    |                  Redial delay time: 5                                |
  1312. X    |                         Script/TTY:                                  |
  1313. X    |                 Result of last try:                                  |
  1314. X    |                                                                      |
  1315. X    |   <SPACE>: Recycle    <DEL>: Remove from queue    E: Change delays   |
  1316. X    |                                                                      |
  1317. X    +------------------------- Press <ESC> to abort -----------------------+
  1318. X
  1319. X    The options available during the dialing window are:
  1320. X
  1321. X        SPACE) Press the space bar to stop the  dialing  of  the
  1322. X        current  entry and go on to the next entry in the queue.
  1323. X        If there is only one entry in the queue, that number  is
  1324. X        redialed.
  1325. X
  1326. X        DEL) Press the DEL key to remove the current number from
  1327. X        the queue.
  1328. X
  1329. X        E) Press the letter "E"  to  change  the  connect  delay
  1330. X        time,  or  the  redial  delay  time  (the  pause between
  1331. X        dialing attempts).  You will be  prompted  to  save  the
  1332. X        changes to disk.
  1333. X
  1334. X    NOTE:  While the DEL and E  options  are  being  processed,  the
  1335. X    dialing is temporarily suspended.
  1336. X
  1337. X    8. AUTO-LOGIN SCRIPTS
  1338. X
  1339. X    Pcomm doesn't have a built-in script language, instead  it  uses
  1340. X    Unix  shell  scripts  (Bourne  shell, C shell, or Korn shell) to
  1341. X    perform the necessary "chat" sequences to log a  user  on  to  a
  1342. X    remote system.
  1343. X
  1344. X    Since shell scripts are run  "outside"  of  Pcomm,  they  cannot
  1345. X    contain  Pcomm  commands.   For  example,  an  auto-login script
  1346. X    cannot dial a phone number or turn on the data logging  feature.
  1347. X    The  auto-login  scripts  are  run *after* the connection to the
  1348. X    remote system has been made.
  1349. X
  1350. X    You may hit the <ESC> key at any time  to  abort  an  auto-login
  1351. X    script  before  it has completed.  All other characters typed at
  1352. X    the keyboard are ignored.
  1353. X
  1354. X    WARNING:  Any  file  that  has  a  "clear  text"  (un-encrypted)
  1355. X    version  of your password is a significant security threat.  You
  1356. X    should remove the read permission to all others.
  1357. X
  1358. X    In order to assist in the creation of  auto-login  scripts,  the
  1359. X    following external programs have been provided.
  1360. X
  1361. X    8.1 Waitfor Command
  1362. X
  1363. X    The waitfor command has the following syntax:
  1364. X
  1365. X        waitfor -n string
  1366. X
  1367. X    where "n" is the number of seconds to wait and "string"  is  the
  1368. X    string to wait for.
  1369. X
  1370. X    Waitfor returns a 0 if the string was found, a 1  if  it  didn't
  1371. X    find  the string within the allotted time, and a -1 if there was
  1372. X    an error.  Waitfor returns immediately if the string is found.
  1373. X
  1374. X    The waitfor command would typically  be  used  in  a  script  to
  1375. X    indicate that the desired prompt has appeared.  For example:
  1376. X
  1377. X        waitfor -5 "ogin:"
  1378. X        if [ "$?" -eq 0 ]
  1379. X        then
  1380. X            echo "egray"
  1381. X        fi
  1382. X
  1383. X    would wait up to 5 seconds  for  the  string  "ogin:".   If  the
  1384. X    return  code  is  0  (the  strings  did  apear), send the string
  1385. X    "egray" (my user ID).
  1386. X
  1387. X    NOTE:  Upper and lower case letters  are  considered  different.
  1388. X    If  you are not sure if the prompt is "Login:" or "login:", then
  1389. X    skip the first letter in the string and use "ogin:".
  1390. X
  1391. X    8.2 Matches Command
  1392. X
  1393. X    The matches command has the following syntax:
  1394. X
  1395. X        matches string1 string2
  1396. X
  1397. X    Matches returns a 0 if string2  is  contained  in  string1,  and
  1398. X    returns a 1 if it does not.  Unlike waitfor, the matches command
  1399. X    does not read the TTY port.
  1400. X
  1401. X    The matches command could be used to test string values such as:
  1402. X
  1403. X        read junk
  1404. X        matches $junk "login failed"
  1405. X        if [ "$?" -eq 0 ]
  1406. X        then
  1407. X            exit
  1408. X        fi
  1409. X    
  1410. X    8.3 Modem_break Command
  1411. X
  1412. X    The modem_break command performs a modem break on the  TTY.   It
  1413. X    would  often  be  used  to  tell  the remote system to switch to
  1414. X    another baud rate.
  1415. X
  1416. X    The modem_break program has no command line arguments.
  1417. X
  1418. X    8.4 Examples
  1419. X
  1420. X    It is not my intention to teach the reader the  fundamentals  of
  1421. X    Unix  shell  programming.   There  are several good books on the
  1422. X    subject available in stores.
  1423. X
  1424. X    Remember to add execute permission to the file  and  remove  the
  1425. X    read permission to all others.
  1426. X
  1427. X    The simplest auto-login script may contain the following:
  1428. X
  1429. X        # send a <CR>
  1430. X        echo ""
  1431. X        # wait 5 seconds for the login prompt
  1432. X        waitfor -5 ogin:
  1433. X        # send my user ID
  1434. X        echo "egray"
  1435. X        # wait 5 seconds for the password prompt
  1436. X        waitfor -5 assword:
  1437. X        # send my password
  1438. X        echo "abcdefg"
  1439. X        # return to Pcomm
  1440. X        exit 0
  1441. X
  1442. X    A more complex script is required if the user must send a  modem
  1443. X    break to syncronize the baud rate of the remote.  For example:
  1444. X
  1445. X        echo ""
  1446. X        try=0
  1447. X        # loop until done
  1448. X        while true
  1449. X        do
  1450. X            # wait 5 seconds for the login prompt
  1451. X            waitfor -5 ogin:
  1452. X            # test the exit code of the waitfor command
  1453. X            if [ "$?" -eq 0 ]
  1454. X            then
  1455. X                # send my user ID and exit the loop
  1456. X                echo "egray"
  1457. X                break
  1458. X            fi
  1459. X
  1460. X            # increment the number of attempts
  1461. X            try=`expr $try + 1`
  1462. X            # test to see if we should give up
  1463. X            if [ "$try" -eq 5 ]
  1464. X            then
  1465. X                exit 1
  1466. X            fi
  1467. X
  1468. X            # send a modem break and loop again
  1469. X            modem_break
  1470. X            echo ""
  1471. X        done
  1472. X        # wait 5 seconds for the password prompt
  1473. X        waitfor -5 assword:
  1474. X        # test the return code from waitfor
  1475. X        if [ "$?" -eq 0 ]
  1476. X        then
  1477. X            # send my password
  1478. X            echo "abcdefg"
  1479. X        else
  1480. X            exit 1
  1481. X        fi
  1482. X        # return to Pcomm
  1483. X        exit 0
  1484. X
  1485. X    Appendix A
  1486. X
  1487. X              Typical Modem Configuration
  1488. X
  1489. X    I can't begin to describe how to configure every modem  to  work
  1490. X    with  Pcomm.   There  are, however, several guidelines that will
  1491. X    apply to virtually any modem.
  1492. X
  1493. X        1) Pcomm  doesn't  care  about  the  DCD  (Data  Carrier
  1494. X        Detect) settings of the modem.
  1495. X
  1496. X        2) It would be nice (but not essential) if the  loss  of
  1497. X        the  DTR  (Data Terminal Ready) caused the modem to hang
  1498. X        up.
  1499. X
  1500. X        3) Pcomm doesn't care if commands are echoed back by the
  1501. X        modem  (it  might save a few milliseconds if echoing was
  1502. X        turned off).
  1503. X
  1504. X        4) Some sort of  result  codes  are  required.   Numeric
  1505. X        result  codes are ok...  but since they are displayed on
  1506. X        the screen, word result codes will make more sense.
  1507. X
  1508. X        5) If the modem can return different  result  codes  for
  1509. X        each  baud  rate at which it answers, then by all means,
  1510. X        use them.
  1511. X
  1512. X        6) Anything that is  returned  by  the  modem,  but  not
  1513. X        listed in the modem setup, is ignored.
  1514. X
  1515. X        7) Systems running uugetty (the  bi-directional  version
  1516. X        of  getty that comes with HDB uucp) should include extra
  1517. X        commands in the initialization  string  to  assure  that
  1518. X        uugetty  switches  to  its  dial  out  mode.   Normally,
  1519. X        "AT!~AT!~" causes enough dialogue to  force  uugetty  to
  1520. X        release the line.
  1521. X
  1522. X    For example,  a  2400  baud  Hayes  compatible  modem  might  be
  1523. X    configured with the following command:
  1524. X
  1525. X        AT S7=45 S11=70 E0 Q0 V1 X4 &D2
  1526. X
  1527. X            AT    Hayes attention command
  1528. X            S7=45    Wait 45 seconds for an answer
  1529. X            S11=70    70 ms touch tone dialing
  1530. X            E0    Don't echo commands (not essential)
  1531. X            Q0    Turn result codes on
  1532. X            V1    Return word result codes
  1533. X            X4    Use as many result codes as you've got
  1534. X            &D2    Hang up when DTR is lost (nice to have)
  1535. X
  1536. X
  1537. X    Appendix B
  1538. X
  1539. X                 AT&T Unix PC 7300/3b1
  1540. X                  Dial Codes
  1541. X
  1542. X    The dialing codes used by the  OBM  (On  Board  Modem)  are  not
  1543. X    straight-forward.   The  modem setup, as distributed, looks like
  1544. X    this:
  1545. X
  1546. X    -------------------------- Modem Setup -------------------------
  1547. X
  1548. X         1) Modem name (1 of 2) ... OBM
  1549. X         2) Modem init string .....
  1550. X         3) Dialing command ....... %
  1551. X         4) Dialing cmd suffix .... @
  1552. X         5) Hang up string ........
  1553. X         6) Auto baud detect ...... N
  1554. X         7) 300 baud connect ...... CONNECT
  1555. X         8) 1200 baud connect ..... CONNECT
  1556. X         9) 2400 baud connect .....
  1557. X        10) 4800 baud connect .....
  1558. X        11) 9600 baud connect .....
  1559. X        12) 19200 baud connect ....
  1560. X        13) No connect string 1 ...
  1561. X        14) No connect string 2 ...
  1562. X        15) No connect string 3 ...
  1563. X        16) No connect string 4 ...
  1564. X
  1565. X    ----------------------------------------------------------------
  1566. X    OPTION ==> _                               Press <ESC> to return
  1567. X
  1568. X    The relevant fields of the modem setup are:
  1569. X
  1570. X        1) Modem name.  This must be "OBM".
  1571. X
  1572. X    NOTE:  Pcomm uses the modem name as a flag  to  determine  which
  1573. X    dialing  method  to  use.  The string "OBM" is a "reserved word"
  1574. X    that Pcomm uses to switch to  the  AT&T Unix PC 7300/3b1 dialing
  1575. X    method.
  1576. X
  1577. X        3) Dialing command.  This should be "%" for  touch  tone
  1578. X        dialing or "^" for pulse dialing.
  1579. X
  1580. X        4) Dialing cmd suffix.  This must be the "@" character.
  1581. X
  1582. X        6) Auto baud detect.  The OBM cannot  use  the auto baud
  1583. X        detect feature.
  1584. X
  1585. X        7-8) Connect strings.  Although the OBM doesn't actually
  1586. X        return any result codes, these fake fields are required.
  1587. X
  1588. X    Additional OBM dialing codes from the phone(7) manual:
  1589. X
  1590. X        "~"    wait for next dial tone
  1591. X        ","    pause 2 seconds
  1592. X        ":"    pause 10 seconds
  1593. X        "&"    perform a hookflash
  1594. X        "%"    begin tone dialing
  1595. X        "^"    begin pulse dialing
  1596. X
  1597. X    These codes can be inserted into the phone  number  string,  for
  1598. X    example:
  1599. X
  1600. X        555-1234~56    dial 555-1234, wait for tone, dial 56
  1601. X        9,555-1234    dial 9, wait 2 seconds, dial 555-1234
  1602. X        %555^1234    dial 555 using tone, 1234 using pulse
  1603. X
  1604. X    NOTE:  The  dialing  codes  for  the  OBM  are  not  subject  to
  1605. X    character  synonym translations, therefore the "%", "^", and "~"
  1606. X    characters do NOT have to be preceded by the  "\"  character  to
  1607. X    remove their special meaning.
  1608. X
  1609. X    Appendix C
  1610. X
  1611. X               Using Telebit Trailblazers
  1612. X
  1613. X    The Telebit Trailblazer modem is probably representative of  the
  1614. X    newer   high   speed  intelligent  modems  available  today  and
  1615. X    therefore warrants a more detailed discussion.
  1616. X
  1617. X    1) Locked interface speed
  1618. X
  1619. X        Trailblazers have  the  ability  to  maintain  a  locked
  1620. X        interface  speed with the computer without regard to the
  1621. X        connected baud rate.  For example, some people  find  it
  1622. X        necessary  to  lock the interface speed at 9600 baud (or
  1623. X        some other speed) for normal operations.  However, Pcomm
  1624. X        assumes the interface speed is the same as the connected
  1625. X        baud rate.
  1626. X
  1627. X        The "init speed" field of the TTY database  was  created
  1628. X        to solve this problem.  If this value is non-zero, Pcomm
  1629. X        will send the initialization string to the modem at this
  1630. X        baud  rate.   Normally, Pcomm would use the baud rate in
  1631. X        the dialing directory to send the init string.
  1632. X
  1633. X        The init string would now contain the  codes  to  unlock
  1634. X        the  interface,  enter the autobaud mode on receipt of a
  1635. X        break, and arrange for the loss of the DTR to return the
  1636. X        modem   to  its  previous  locked  state.   For  Telebit
  1637. X        Trailblazers this would be S66=0, S51=255, and S52=2.
  1638. X
  1639. X    2) Multiple setups
  1640. X
  1641. X        Users of Trailblazers often require  a  different  "init
  1642. X        string"  or  "dial  string" depending on the target baud
  1643. X        rate.  For example, the init strings for 9600 and  19200
  1644. X        baud may contain the command "S50=255" (to  wait for the
  1645. X        Telebit PEP tones) whereas the slower init strings would
  1646. X        contain "S50=0".
  1647. X
  1648. X        This problem is solved by creating an  additional  modem
  1649. X        entry  in  the  modem  database.  For example, you could
  1650. X        have an entry called "TELEBIT" for  baud  rates  in  the
  1651. X        range    of    300-2400   and   another   entry   called
  1652. X        "FAST_TELEBIT"  for  baud  rates   in   the   range   of
  1653. X        9600-19200.
  1654. X
  1655. X        Pcomm uses the connect strings to determine if the modem
  1656. X        can   handle  the  requested  baud  rate.   So,  if  the
  1657. X        "TELEBIT" entry had connect strings for 300,  1200,  and
  1658. X        2400  baud  it  would  be selected only if the requested
  1659. X        baud rate was in that range.  Likewise, the FAST_TELEBIT
  1660. X        would have connect strings only for 9600 and 19200 baud.
  1661. X
  1662. X    3) Baud rate synchronization
  1663. X
  1664. X        In contrast to the Hayes  2400  modem,  the  Trailblazer
  1665. X        does  not  immediately  synchronize with the serial port
  1666. X        when the baud rate is changed during the modem's command
  1667. X        mode.
  1668. X
  1669. X        To solve this problem, the init string and  dial  string
  1670. X        should contain the break character synonym followed by a
  1671. X        sufficient  number  of  A's  to  allow  the   modem   to
  1672. X        synchronize.   The default character synonym for a modem
  1673. X        break is the "%".
  1674. X
  1675. X    4) Sample TTY database
  1676. X
  1677. X        The following is the contents of the sample TTY database:
  1678. X
  1679. X        TTY name    Modem name    Init speed
  1680. X
  1681. X        1) tty10    HAYES           0
  1682. X        2) tty11    HAYES           0
  1683. X        3) tty12    DIRECT           0
  1684. X        4) tty13    TELEBIT           0
  1685. X        5) tty13    FAST_TELEBIT       0
  1686. X
  1687. X        Notice that entries 4 and 5 share the same TTY.
  1688. X
  1689. X    NOTE:  The examples assume the  modem  interface  speed  is  not
  1690. X    locked.  See paragraph 1 for additional codes to be added to the
  1691. X    init string if the lock interface feature is used.
  1692. X
  1693. X    5) Sample modem database entry for TELEBIT
  1694. X
  1695. X        The third entry in the sample modem database is for  the
  1696. X        Telebit Trailblazer designated for use at slow speeds.
  1697. X
  1698. X        1) Modem name (3 of 4) .... TELEBIT
  1699. X        2) Modem init string ...... %AAAAAATS50=0S2=43S95=0M1!
  1700. X        3) Dialing command ........ %AAAAAATDTW
  1701. X        4) Dialing cmd suffix ..... !
  1702. X        5) Hang up string ......... ~~+++~~ATH0!
  1703. X        6) Auto baud detect ....... Y
  1704. X        7) 300 baud connect ....... CONNECT 300
  1705. X        8) 1200 baud connect ...... CONNECT 1200
  1706. X        9) 2400 baud connect ...... CONNECT 2400
  1707. X        10) 4800 baud connect .....
  1708. X        11) 9600 baud connect .....
  1709. X        12) 19200 baud connect ....
  1710. X        13) No connect string 1 ... BUSY
  1711. X        14) No connect string 2 ... ERROR
  1712. X        15) No connect string 3 ... NO CARRIER
  1713. X        16) No connect string 4 ...
  1714. X
  1715. X    6) Sample modem database entry for FAST_TELEBIT
  1716. X
  1717. X        The 4th entry is for the Telebit Trailblazer  designated
  1718. X        for use at higher speeds.
  1719. X
  1720. X        1) Modem name (4 of 4) .... FAST_TELEBIT
  1721. X        2) Modem init string ...... %AAAAAATS50=255S2=43S95=0M1!
  1722. X        3) Dialing command ........ %AAAAAATDTW
  1723. X        4) Dialing cmd suffix ..... !
  1724. X        5) Hang up string ......... ~~+++~~ATH0!
  1725. X        6) Auto baud detect ....... N
  1726. X        7) 300 baud connect .......
  1727. X        8) 1200 baud connect ......
  1728. X        9) 2400 baud connect ......
  1729. X        10) 4800 baud connect .....
  1730. X        11) 9600 baud connect ..... CONNECT
  1731. X        12) 19200 baud connect .... CONNECT
  1732. X        13) No connect string 1 ... BUSY
  1733. X        14) No connect string 2 ... ERROR
  1734. X        15) No connect string 3 ... NO CARRIER
  1735. X        16) No connect string 4 ...
  1736. echo shar: "48 control characters may be missing from 'Doc'"
  1737. SHAR_EOF
  1738. if test 61114 -ne "`wc -c < 'Doc'`"
  1739. then
  1740.     echo shar: "error transmitting 'Doc'" '(should have been 61114 characters)'
  1741. fi
  1742. fi
  1743. exit 0
  1744. #    End of shell archive
  1745.  
  1746.  
  1747.